package com.tinycloud.miracll.product.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave4;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.AuxiSysWeightEndMapper;
import com.tinycloud.miracll.product.domain.AuxiSysWeightEnd;
import com.tinycloud.miracll.product.service.IAuxiSysWeightEndService;

/**
 * 自动助剂称量结束数据Service业务层处理
 * 
 * @author tiny
 * @date 2022-05-13
 */
@Service
@Slave4
public class AuxiSysWeightEndServiceImpl implements IAuxiSysWeightEndService 
{
    @Autowired
    private AuxiSysWeightEndMapper auxiSysWeightEndMapper;

    /**
     * 查询自动助剂称量结束数据
     * 
     * @param projid 自动助剂称量结束数据主键
     * @return 自动助剂称量结束数据
     */
    @Override
    public AuxiSysWeightEnd selectAuxiSysWeightEndByProjid(Long projid)
    {
        return auxiSysWeightEndMapper.selectAuxiSysWeightEndByProjid(projid);
    }

    /**
     * 查询自动助剂称量结束数据列表
     * 
     * @param auxiSysWeightEnd 自动助剂称量结束数据
     * @return 自动助剂称量结束数据
     */
    @Override
    public List<AuxiSysWeightEnd> selectAuxiSysWeightEndList(AuxiSysWeightEnd auxiSysWeightEnd)
    {
        return auxiSysWeightEndMapper.selectAuxiSysWeightEndList(auxiSysWeightEnd);
    }
  /**
     * 查询自动助剂称量结束数据列表
     *
     * @param auxiSysWeightEnd 自动助剂称量结束数据
     * @return 自动助剂称量结束数据
     */
    @Override
    public List<AuxiSysWeightEnd> selectAuxiSysWeightEndListByDate(AuxiSysWeightEnd auxiSysWeightEnd)
    {
        return auxiSysWeightEndMapper.selectAuxiSysWeightEndListByDate(auxiSysWeightEnd);
    }

    /**
     * 新增自动助剂称量结束数据
     * 
     * @param auxiSysWeightEnd 自动助剂称量结束数据
     * @return 结果
     */
    @Override
    public int insertAuxiSysWeightEnd(AuxiSysWeightEnd auxiSysWeightEnd)
    {
        return auxiSysWeightEndMapper.insertAuxiSysWeightEnd(auxiSysWeightEnd);
    }

    /**
     * 修改自动助剂称量结束数据
     * 
     * @param auxiSysWeightEnd 自动助剂称量结束数据
     * @return 结果
     */
    @Override
    public int updateAuxiSysWeightEnd(AuxiSysWeightEnd auxiSysWeightEnd)
    {
        return auxiSysWeightEndMapper.updateAuxiSysWeightEnd(auxiSysWeightEnd);
    }

    /**
     * 批量删除自动助剂称量结束数据
     * 
     * @param projids 需要删除的自动助剂称量结束数据主键
     * @return 结果
     */
    @Override
    public int deleteAuxiSysWeightEndByProjids(Long[] projids)
    {
        return auxiSysWeightEndMapper.deleteAuxiSysWeightEndByProjids(projids);
    }

    /**
     * 删除自动助剂称量结束数据信息
     * 
     * @param projid 自动助剂称量结束数据主键
     * @return 结果
     */
    @Override
    public int deleteAuxiSysWeightEndByProjid(Long projid)
    {
        return auxiSysWeightEndMapper.deleteAuxiSysWeightEndByProjid(projid);
    }
}
